/**
 * @ Author: Yoann Meclot. MSay2
 * @ Created on: 2020-09-02 15:44:37
 * @ Modified on: 2020-10-01 13:36:40
 *
 * @version 1.2
 */
/**
 * Copyright (c) 2020 MSay2, Yoann Meclot - @msay2/tspoet
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { List } from "../utils/ArrayList.js";
import { CodeWriter } from "./CodeWriter.js";
import { Modifier, TypeName } from "./TSPoet.js";
/**
 * Init a new variable
 *
 * @class TSVariable
 * @version 1.1
 */
export declare class TSVariable {
    name: string;
    value: any;
    typeName: TypeName;
    modifiers: List<Modifier>;
    constructor(builder: Builder);
    /**
     * Set a name.
     *
     * @param name The name of the variable.
     * @type {Builder}
     * @since 1.0
     */
    static add(name: string): Builder;
    emit(codeWriter: CodeWriter): CodeWriter;
}
/**
 * @version 1.1
 */
declare class Builder {
    name: string;
    typeName: TypeName;
    value: any;
    modifiers: List<Modifier>;
    constructor(name: string);
    /**
     * Add modifiers for the variable.
     *
     * @param modifiers The modifiers to be added.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @type {Builder}
     * @since 1.0
     */
    addModifiers(...modifiers: Modifier[]): Builder;
    /**
     * Specify a return type.
     *
     * @param typeName The return type.
     * @throws {NullPointerException} Check if the TypeName object is null.
     * @type {Builder}
     * @since 1.0
     */
    return(typeName: TypeName): Builder;
    /**
     * Set a value.
     *
     * @param value The value of the variable.
     * @type {Builder}
     * @since 1.0
     */
    setValue(value: any): Builder;
    /**
     * Build the variable.
     *
     * @type {TSVariable}
     * @throws {NullPointerException} Check if the name is null.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @throws {NullPointerException} Check if the type name is null.
     * @since 1.0
     */
    build(): TSVariable;
}
export { };
//# sourceMappingURL=TSVariable.d.ts.map